<?php

use  Biz\service\NiceGoodsTopic\Topic;

class HeadAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $topic_id = $this->getRequest()->getPost('id', 0);
        if(empty($topic_id)){
            throw new \Exception("topic_id 不存在");
        }
        $result = Topic::getDetailById($topic_id);
        $this->setSuccess($result);

    }
}